<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class fk
{
    public function __get($name){
        echo "Searching for property $name: ";
        return $this->$name;
    }
}

class test extends fk
{
    private $foo = 'bla';
    protected $bar = 'coffe';

    
}

$t = new test;
echo $t->foo;
echo $t->bar;
